package com.airlines.crewassignment.daofocmysql.ruleverification;


import com.airlines.crewassignment.entity.crew.CrewDutyHours;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

/**
 * @author xxxx
 * @date 2018/8/21
 * @company xxxx Airlines
 * @description
 */
@Mapper
public interface CrewDutyHoursMapper  {
    /**
     * 批量保存每人每天的执勤期到数据库
     * @param allDutyHours
     * @return
     */
    int batchInsert(List<CrewDutyHours> allDutyHours);

    /**
     * 获取每人每天的执勤期
     * @param crewDutyHours
     * @return
     */
    List<CrewDutyHours> getDayDutyHours(CrewDutyHours crewDutyHours);

    /**
     * 批零删除当年
     * @param year
     * @return
     */
    int batchDelete(Integer year);
}
